var Express = require('express'),
    Router = Express.Router(),

    logPolicy = require('../policies/policy'),

    userLogController = require('../controllers/userLog.controller');

Router.route('/createLog').all(logPolicy.isAllowed).post(userLogController.createLog);

Router.route('/getAllLogs').all(logPolicy.isAllowed).get(userLogController.getAllLogs);

Router.route('/getUserLogs').all(logPolicy.isAllowed).post(userLogController.getUserLogs);

Router.route('/getAllLogsByDate').all(logPolicy.isAllowed).post(userLogController.getAllLogsByDate);

Router.route('/getAllLogsCSV').all(logPolicy.isAllowed).post(userLogController.getAllLogsCSV);

module.exports = Router;


